package com.ruoyi.purchase.domain;

/**
 * 用于传递每个货品批次的剩余调拨数量
 *
 * @author kevinness
 * @date 2025/1/19
 */
public class AllocationQuantityParams {
    /** 订单编号 */
    private String orderNo;

    /** 货品编码 */
    private String rawProductBatch;

    /** 货品名称 */
    private String rawProductName;

    /** 货品图片 */
    private String picture;

    /** 物品种类 */
    private String goodsCategory;

    /** 剩余调拨数量 */
    private int remainAllocationQuantity;

    public AllocationQuantityParams() {
    }

    public AllocationQuantityParams(OrderDetail orderDetail) {
        this.orderNo = orderDetail.getOrderNo();
        this.rawProductBatch = orderDetail.getRawProductBatch();
        this.rawProductName = orderDetail.getRawProductName();
        this.picture = orderDetail.getPicture();
        this.goodsCategory = orderDetail.getGoodsCategory();
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getRawProductBatch() {
        return rawProductBatch;
    }

    public void setRawProductBatch(String rawProductBatch) {
        this.rawProductBatch = rawProductBatch;
    }

    public String getGoodsCategory() {
        return goodsCategory;
    }

    public void setGoodsCategory(String goodsCategory) {
        this.goodsCategory = goodsCategory;
    }

    public int getRemainAllocationQuantity() {
        return remainAllocationQuantity;
    }

    public void setRemainAllocationQuantity(int remainAllocationQuantity) {
        this.remainAllocationQuantity = remainAllocationQuantity;
    }

    public String getRawProductName() {
        return rawProductName;
    }

    public void setRawProductName(String rawProductName) {
        this.rawProductName = rawProductName;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    @Override
    public String toString() {
        return "AllocationQuantityParams{" +
                "orderNo='" + orderNo + '\'' +
                ", rawProductBatch='" + rawProductBatch + '\'' +
                ", rawProductName='" + rawProductName + '\'' +
                ", picture='" + picture + '\'' +
                ", goodsCategory='" + goodsCategory + '\'' +
                ", remainAllocationQuantity=" + remainAllocationQuantity +
                '}';
    }
}
